package cn.exrick.xboot.base.vo

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.springframework.format.annotation.DateTimeFormat
import java.util.*
import javax.persistence.Column

@ApiModel("我的上报详情实体")
data class MyReportDetailVo(

        @ApiModelProperty("id")
        var id: String? = "",

        @ApiModelProperty("上报人")
        var reportUser: String? = "",

        @ApiModelProperty("上报类型 1.事故隐患 2.举报 3.安全建议 4.提醒")
        var type: Int? = null,

        @ApiModelProperty("上报类型")
        var typeStr: String? = null,

        @ApiModelProperty("企业信息")
        var enterpriseName: String? = "",

        @ApiModelProperty("上报内容")
        @Column(length = 1000)
        var content: String? = "",

        @ApiModelProperty("上报图片")
        var pics: List<String>? = null,

        @ApiModelProperty("受理人(多选)")
        var checkUser: MutableList<MutableMap<String, Any?>?>? = null,

        @ApiModelProperty("实际处理人")
        var actualCheckUser: String? = "",

        @ApiModelProperty("审核意见")
        var checkAdvice: String? = "",

        @ApiModelProperty("审核时间")
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        var checkTime: Date? = null,

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "上报时间", hidden = true)
        var createTime: Date? = null
)